import { axios } from '@/utils/request'

/**
 * 查询業主租約
 *
 * @author anti
 * @date 2021-05-20 14:23:14
 */
export function ownerLeasePage (parameter) {
  return axios({
    url: '/ownerLease/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 業主租約列表
 *
 * @author anti
 * @date 2021-05-20 14:23:14
 */
export function ownerLeaseList (parameter) {
  return axios({
    url: '/ownerLease/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加業主租約
 *
 * @author anti
 * @date 2021-05-20 14:23:14
 */
export function ownerLeaseAdd (parameter) {
  return axios({
    url: '/ownerLease/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑業主租約
 *
 * @author anti
 * @date 2021-05-20 14:23:14
 */
export function ownerLeaseEdit (parameter) {
  return axios({
    url: '/ownerLease/edit',
    method: 'post',
    data: parameter
  })
}

export function ownerLeaseTuiZu (parameter) {
  return axios({
    url: '/ownerLease/editTuiZu',
    method: 'post',
    data: parameter
  })
}

/**
 * 續租
 */
export function ownerLeaseEditXz (parameter) {
  return axios({
    url: '/ownerLease/editXz',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除業主租約
 *
 * @author anti
 * @date 2021-05-20 14:23:14
 */
export function ownerLeaseDelete (parameter) {
  return axios({
    url: '/ownerLease/delete',
    method: 'post',
    data: parameter
  })
}

export function detailForEdit (parameter) {
  return axios({
    url: '/ownerLease/detailForEdit/' + parameter,
    method: 'get'
  })
}

export function detailLease (parameter) {
  return axios({
    url: '/ownerLease/detailById/' + parameter,
    method: 'get'
  })
}

/**
 * 信息修改修改業主信息
 */
export function ownerLeaseEditYzXx (parameter) {
  return axios({
    url: '/ownerLease/editYzXx',
    method: 'post',
    data: parameter
  })
}

/**
 * 信息修改修改業主租约周期及固定费用
 */
 export function ownerLeaseEditZyZqFy (parameter) {
  return axios({
    url: '/ownerLease/editZyZqFy',
    method: 'post',
    data: parameter
  })
}

export function ownerLeaseEditTxxxAndAc (parameter) {
  return axios({
    url: '/ownerLease/editTxxxAndAc',
    method: 'post',
    data: parameter
  })
}
